package top.tocchen.bookshop.dao;

import org.apache.ibatis.annotations.Mapper;
import top.tocchen.bookshop.entity.BookEntity;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
public interface BookDao {
    int deleteByPrimaryKey(Integer id);

    int insert(BookEntity record);

    int insertSelective(BookEntity record);

    BookEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BookEntity record);

    int updateByPrimaryKeyWithBLOBs(BookEntity record);

    int updateByPrimaryKey(BookEntity record);

    List<BookEntity> findByCateoryId(Integer cateory);

    List<BookEntity> findByStr(String str);

    BookEntity findByBookId(Integer id);
    List<BookEntity> findBydate();
}